package com.itheima.bos.quartz;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.itheima.bos.service.take_delivery.PromotionSerivce;

public class PromotionJob implements Job {
	@Autowired
	private PromotionSerivce promotionService;
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		
		promotionService.updateStatus(new Date());
		System.out.println("活动过期处理程序执行...");
	}
	
	
}
